const fs =require('fs');
const util = require('util')
function readFileAsync(path){
    return util.promisify(fs.readFile)(path);
}
readFileAsync('./package.json').then(data=>{
    console.log(data)
}).then(()=>{
    return readFileAsync('./package-lock.json')
}).then(data=>{
    console.log(JSON.parse(data).version)
})